<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page
	import="java.text.DateFormat, java.util.Date, java.text.SimpleDateFormat"%>
<jsp:useBean id="myjavabean" scope="session"
	class="com.dones.bean.myJavaBean" />
<html>
<head>
<link rel="stylesheet" type="text/css" href="style/style.css">

</head>
<script>
	function writeDateJs() {
		document.getElementById("datejs").innerHTML = new Date();
	}
</script>
<body onload="writeDateJs()">

	<h1>TEST CSS</h1>
	<fmt:setLocale value="it_IT" scope="session" />
	<fmt:setBundle basename="com.dones.lang.i18n" />

	<fmt:message key="messaggio1" />
	<br />

	<h2>Hello World!</h2>


	Current date in Java:
	<%
		DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
		Date date = new Date();
	%>
	<%=dateFormat.format(date)%>

	<br /> Current date in js:
	<span id="datejs"></span>

	<br />

	<%
		myjavabean.setName("Manuele");
	%>
	<%=myjavabean.getName()%>

</body>
</html>
